package thread;

import net.openhft.affinity.AffinityLock;

/**
 * @author
 * @date 2022年09月29日 20:05
 * @description Java绑核技术实现
 */
public class AffinityDemo {


    public static void main(String[] args) {
        try (AffinityLock affinityLock = AffinityLock.acquireLock(5)) {
            // do some work while locked to a CPU.
            while(true) {}
        }
    }
}
